package com.me.bbs.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.me.bbs.dto.PostDTO;
import com.me.bbs.entity.Post;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mysql.cj.log.Log;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lm
 * @since 2023-01-09
 */
public interface PostMapper extends BaseMapper<Post> {
    PostDTO selectPostDtoById(Long id);

    Page<PostDTO> listPostDto(Page<PostDTO> dtoPage, @Param(Constants.WRAPPER) Wrapper<Post> wrapper);
}
